﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._22
{
    class ShopNpc:NPC
    {
        public string goods;

        public string Goods { get => goods; set => goods = value; }

        public ShopNpc(string name, string typeNpc, string goods) : base(name, typeNpc)
        {
            this.goods = goods;
        }

        public override void Speak()
        {
            Console.WriteLine("亲爱的{0}，我这里有{1}，你需要些什么？", this.name, this.goods);
        }
    }
}
